export default {
    state: {
        aAge: 300
    },
    mutations: {
        changeAge(state, payload) {
            state.age = payload;
        },
    },
    actions: {
        changeAge({ commit }, payload) {
            return new Promise((resolve, reject) => {
                setTimeout(() => {
                    commit('changeAge', payload)
                    resolve(payload);
                }, 1000);
            })
        }
    },
}